home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / tlp4v11c / include / uniinp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-22  |  1.1 KB  |  40 lines

  1. /* Tale Unified Input Handler Application Header
  2.  * Copyright (C) 1994 Tale Software
  3.  * All rights reserved.
  4.  */
  5.  
  6. /* UNIINP.H already included? */
  7. #ifndef UNIINP_H
  8. #define UNIINP_H
  9.  
  10. /* define origin data types as understood by tale software */
  11. #ifndef TALE_DATA_TYPES
  12.  #define TALE_DATA_TYPES
  13.  typedef unsigned char ubyte;       /* unsigned byte */
  14.  typedef signed char byte;       /* signed byte */
  15.  typedef unsigned int uword;       /* unsigned word */
  16.  typedef signed int word;       /* signed word */
  17.  typedef unsigned long int udword; /* unsigned double word */
  18. #endif
  19.  
  20. /* readstick() returns a pointer to this structure */
  21. typedef struct { uword joy0xpos,joy0ypos; 
  22.          uword joy1xpos,joy1ypos;
  23.            } joypos;
  24.  
  25. /* these procedures are currently available */
  26. /* keyboard functions */
  27. byte getkeyboard(void);
  28. byte freekeyboard(void);
  29. ubyte lastkey(void);
  30. byte keystatus(ubyte keycode);
  31. byte keyboardled(ubyte ledstatus);
  32. byte keyboardtyp(ubyte kbddelay,ubyte kbdtypem);
  33. ubyte sysled(void);
  34.  
  35. /* joystick functions */
  36. joypos far *readstick(ubyte stick);
  37. ubyte readjbutton(void);
  38.  
  39. #endif /* UNIINP_H */
  40.